package org.amse.tanks.objects;

import java.io.Serializable;

public class Shot implements Serializable {
    private int myX;
    private int myY;
    private Direction myDirection;
    private int myTankId;
    private boolean isPiercing;

    public Shot(int x, int y, Direction direction, int myTankId, boolean isPiercing) {
        myX = x;
        myY = y;
        myDirection = direction;
        this.myTankId = myTankId;
        this.isPiercing = isPiercing;
    }

    public int getMyTankId() {
        return myTankId;
    }

    public boolean isPiercing() {
        return isPiercing;
    }

    public void setX(int x) {
        myX = x;
    }

    public void setY(int y) {
        myY = y;
    }

    public int getX() {
        return myX;
    }

    public int getY() {
        return myY;
    }

    public void setDirection(Direction direction) {
        myDirection = direction;
    }

    public Direction getDirection() {
        return myDirection;
    }
}
